import sqlalchemy
from sqlalchemy import Column, String, create_engine, Integer
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base


# 创建对象的基类:
Base = declarative_base()
# 初始化数据库连接:
engine = create_engine('mysql+cymysql://root:A19950218a@rm-2ze169qvzf3i14g22mo.mysql.rds.aliyuncs.com:3306/EasyManagerApi')
# 创建DBSession类型:
DBSession = sessionmaker(bind=engine)
db = DBSession()
